﻿using System;
using UnityEngine;

namespace SillyCube
{
    [RequireComponent(typeof(LineRenderer))]
    public class HintLineController : MonoBehaviour
    {
        private LineRenderer lineRenderer;
        public LineRenderer LineRenderer => lineRenderer;

        private void Awake()
        {
            lineRenderer = GetComponent<LineRenderer>();
        }

        public void SetColor(Color color)
        {
            lineRenderer.sharedMaterial.SetColor("_Color", color);
        }
    }
}